#include<iostream>
#include<map>
#include<string>
using namespace std;
int n;
typedef pair<string, string> PSS;
map<PSS,int>mp;
string s1, s2;
int main()
{
	cin >> n;
	int cnt = 0;
	while (n--) {
		cin >> s1 >> s2;
		if (mp[{s1,s2}]) {
			continue;
		}
		else {
			mp[{s1, s2}] = 1;
			cnt++;
		}
	}
	cout << cnt << endl;
	return 0;
}